package com.ybb.production.domain;

import com.yubb.common.annotation.Excel;
import com.yubb.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 工序配置对象 garment_production_process_config
 *
 * @author dengjie
 * @date 2023-09-14
 */
public class GarmentProductionProcessConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 工序配置id
     */
    @ApiModelProperty(value = "工序配置id")
    private Long id;

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id")
    @Excel(name = "订单id")
    private Long orderId;

    /**
     * 工序名称
     */
    @ApiModelProperty(value = "工序名称")
    @Excel(name = "工序名称")
    private String processName;

    /**
     * 单价
     */
    @ApiModelProperty(value = "单价")
    @Excel(name = "单价")
    private String price;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    @Excel(name = "数量")
    private Long quantity;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    @Excel(name = "部门id")
    private Long deptId;

    /**
     * 是否常用（0代表否 1代表是）
     */
    @ApiModelProperty(value = "是否常用（0代表否 1代表是）")
    @Excel(name = "是否常用", readConverterExp = "0=代表否,1=代表是")
    private String oftenFlag;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public String getProcessName() {
        return processName;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPrice() {
        return price;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setOftenFlag(String oftenFlag) {
        this.oftenFlag = oftenFlag;
    }

    public String getOftenFlag() {
        return oftenFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("processName", getProcessName())
                .append("price", getPrice())
                .append("quantity", getQuantity())
                .append("deptId", getDeptId())
                .append("oftenFlag", getOftenFlag())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
